#ifndef _BANAGLYPH_H_
#define _BANAGLYPH_H_

#include <blackbox/bases/csyncbox.h>
#include <buola/cv/opencv.h>

//necessary guarantees:
//- OnInput is only called if all inputs contain valid data
//- no input can change while OnInput is being executed

namespace buola { namespace blackbox {

template<typename tImage>
class BAnaglyph : public CSyncBox
{
public:
    BAnaglyph()
        :	iLeftImage(this,"left image in")
        ,	iRightImage(this,"right image in")
        ,	oImage(this,"image out")
    {}

protected:
    virtual void OnClock()
    {
        const tImage &lLeftIn=iLeftImage.Get();
//        const tImage &lRightIn=iRightImage.Get();

        oImage=lLeftIn;
    }

public:
    CDataIn<tImage> iLeftImage;
    CDataIn<tImage> iRightImage;

    CDataOut<tImage> oImage;

private:
};

/*namespace blackbox*/ } /*namespace buola*/ }

#endif
